<#assign s=JspTaglibs["/WEB-INF/tld/struts-tags.tld"] />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<#import "/WEB-INF/tpl/public/DetailHead.ftl" as dHead> <@dHead.detailHead title="岗位管理">
<link rel="stylesheet" type="text/css" href="${c}/css/${USER_SESSION.theme}/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" href="${c}/js/ztree/zTreeStyle.css" />
<script language="javascript" src="${c}/js/ui/i18n/grid.locale-cn.js"></script>
<script language="javascript" src="${c}/js/ui/jquery.jqGrid.min.js"></script>
<script language="javascript" src="${c}/js/ui/jquery.ui.accordion.min.js"></script>
<script language="javascript" src="${c}/js/ztree/jquery.ztree-2.6.min.js"></script>
<script language="javascript" src="${c}/js/core/base.js"></script>
<script language="javascript" src="${c}/js/core/department_tree.js"></script>
<script language="javascript" src="${c}/js/oa/system/post-edit.js"></script>
</@dHead.detailHead>
<body>

<#import "/WEB-INF/tpl/public/DetailContent.ftl" as dc>
<@dc.detailContent title="岗位设置">
<@s.form id="postForm" name="form1" action="savePost.action" method="post">
<table align="center" width="100%">
	<tr>
		<td colspan="3" class="subtitle">岗位信息</td>
		<@s.hidden name="edit" id="edit_flag" Class="required"/>
		<#if edit==true><@s.hidden name="post.post_id" id="post_id" Class="required"/></#if>
	</tr>
	<tr>
		<td width="15%" class="label">岗位名称(<font color="red">*</font>):</td>
		<td><@s.textfield name="post.post_name"
		id="post_name" maxlength="20" Class="required"/>&nbsp;<span id="post_code_msg" style="color:red"></span></td>
	</tr>
	<tr>
		<td width="15%" class="label">所属部门(<font color="red">*</font>):</td>
		<td><#if edit == false><@s.hidden name="post.department_code" id="department_code"/>
		<@s.textfield name="post.department_name" readonly="true" id="department_name" 
			maxlength="20" onclick="showMenu('department_name'); return false;" Class="required"/>
			&nbsp;<a id="menuBtn" href="#" onclick="showMenu('department_name'); return false;">选择</a>
		<#else><@s.textfield name="post.department_name" readonly="true" id="department_name" maxlength="20" Class="required"/></#if></td>
	</tr>
	<tr>
		<td width="15%" class="label">岗位介绍:</td>
		<td><@s.textarea name="post.description" style="height:100px" id="description" maxlength="1024"/></td>
	</tr>
	<tr><td colspan="3" class="subtitle">配置权限</td></tr>
	<tr>
		<td width="15%" class="label">角色配置</td>
		<td><#if postroleList?exists><#list postroleList as role><ul>
			<li style="width:200px; float:left;"><div style="width:100px;height:20px;float:left;text-align:right;padding-top:2px">${role.role_name}:</div>
			<#if role.post_role_id?exists><input name="roleString" type="checkbox" value="${role.role_id}" checked="true"><#else><input name="roleString" type="checkbox" value="${role.role_id}"></#if>
			</li>
		</ul></#list></#if></td>
	</tr>
</table>
<div class="action" align="center">
<input type="button" value="保存" id="savePostButt"/>&nbsp;&nbsp;
<input type="button" value="取消" onClick="window.close()"/>&nbsp;&nbsp;</div>
</@s.form>
</@dc.detailContent>
<div id="DropdownMenuBackground" style="display:none; position:absolute; height:200px; min-width:150px; background-color:white;border:1px solid;overflow-y:auto;overflow-x:auto;">
	<ul id="dropdownMenu" class="tree"></ul>
</div>
</body>
</html>